Q filter Class
Implements an input that filters an associated list (like an autocomplete)
Constructor
Q filter
(
String
-
[$options]
Parameters:
-
[$options]
Array optionalOverride various options for this tool
-
[name='filter']
String optionalThe name of the text input
-
[value='']
String optionalThe initial value of the text input
-
[placeholder]
String optionalAny placeholder text
-
[placeholders={}]
Array optionalOptions for Q/placeholders, or null to omit it
-
[results='']
String optionalHTML to display in the results initially. If setting them later, remember to call stateChanged('results')
-
[onFilter]
Q.Event optionalName of a JS event handler that is meant to fetch and update results by editing the contents of the element pointed to by the second argument. The first argument is the content of the text input.
-
Returns:
String: